/******************************************************************************

  Copyright (C), 2012-2016, ZHANGYA

 ******************************************************************************
  File Name     : board.h
  Version       : Initial Draft
  Author        : zhangya
  Created       : 2024/5/8
  Last Modified :
  Description   : board.h
  Function List :
  History       :
  1.Date        : 2024/5/8
    Author      : zhangya
    Modification: Created file

******************************************************************************/

#ifndef _BOARD_H_
#define _BOARD_H_

#include "main.h"

#ifdef __cplusplus
extern "C" {
#endif

/*--------------------------------------------------------------------*
 * $external variables                           *
 *--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*
 * $external routine prototypes                  *
 *--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*
 * $internal routine prototypes                  *
 *--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*
 * $project-wide global variables                *
 *--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*
 * $module-wide global variables                 *
 *--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*
 * $constants                                    *
 *--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*
 * $macros                                       *
 *--------------------------------------------------------------------*/

/*--------------------------------------------------------------------*
 * $routines' implementations                    *
 *--------------------------------------------------------------------*/

void board_init(void);

void board_set_pwr_led(bool status);

void board_set_pwr_ctl(bool status);

uint8_t board_get_fan(const int cnt_num);

confirm_state board_beep_start(void);

confirm_state board_beep_long(uint8_t cnt);

confirm_state board_beep_repeat(uint8_t repeat);

confirm_state board_beep_get_state(void);


#ifdef __cplusplus
}
#endif

#endif //#ifndef _BOARD_H_

